package com.calligraphy.order.model;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 *
 * @Author hy
 * @Date 2018/12/13 17:01
 **/
@Data
@Entity
@Table(name = "orderDetail")
public class OrderDetail implements Serializable {


    private static final long serialVersionUID = 4713980303892371153L;

    @Id
    private String detailId;

    /** 订单id. */
    private String orderId;

    /** 商品id. */
    private String productId;

    /** 商品名称. */
    private String productName;

    /** 商品单价. */
    private BigDecimal productPrice;

    /** 商品数量. */
    private Integer productQuantity;

    /** 商品小图. */
    private String productIcon;
}
